#!/usr/bin/ksh -x

# Script name: leap.ksh

# Assume the user enters the year on the command line
# when they execute the script.

year=$1
if test \(\(year \% 400\)\) -eq 0  
then
	print "$year is a leap year!"
elif (( (year % 4) == 0 ))
then
	if (( (year % 100) != 0 ))
	then
		print "$year is a leap year!"
	else
		print "$year is not a leap year."
	fi
else
	print "$year is not a leap year."
fi
